<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>jQuery function for all links</title>
<script src="../js/jquery-1.3.2.js"></script>
<script>
	$(document).ready(function() {
	  $("a").click(function() {
		alert('function given to click method was called');
	  });
	});

</script>
</head>
<body>
ok

<a href="#">Link</a>

<a href="#" onclick="alert('ok')">again</a>

</body>
</html>